Deriving Incremental Implementations from Algebraic Speciications

نویسنده

  • E A Van Der Meulen
چکیده

We present a technique for deriving incremental implementations for a subclass of algebraic speciications, namely, conditional well-presented primitive recursive schemes. We use concepts of the translation of well-presented primitive recursive schemes to strongly non-circular attribute grammars, storing results of function applications and their parameters as attributes in an abstract syntax tree of the rst argument of the function in question. An attribute dependency graph is used to guide incremental evaluation. The evaluation technique is based on a leftmost innermost rewrite strategy. The technique is extended to conditional well-presented primitive recursive schemes. Whereas in the non-conditional case attribute dependency graphs are static and can be constructed before evaluating a term, when working with conditional equations the the attribute dependency graph is adapted upon evaluation. The class of well-presented primitive recursive schemes is a very natural one for specifying the static semantics of languages. Allowing conditions to equations in a primitive recursive scheme is the rst step in extending this class to one in which the dynamic semantics of languages can be described as well.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Fine-grain Incremental Implementation of Algebraic Speciications Note: Partial Support Received from the European Communities under Esprit Project 2177 (generation of Interactive Programming Environments, Phase 2 -gipeii) and from the Netherlands Organization for Scientiic Research -nwo, Project Incremental Program Gen- Erators

In a previous paper we described how an incremental implementation can be derived from algebraic speciications belonging to the subclass of well-presented primitive recursive schemes. We combined term rewriting with techniques for storage and re-use from attribute grammars. Type check speciications typically belong to the class of primitive recursive schemes. The uniformity of algebraic speciic...

متن کامل

Merging Formal

Industry acceptance of formal methods for software speciication could be improved by the availability of tools for direct derivation of prototype implementations from the speciication. We propose such a scenario, based on executable algebraic speciications and eecient implementation of functional languages. Our approach facilitates the incremental replacement of executable speciications by prod...

متن کامل

Objects and Classes, Co-Algebraically

The co-algebraic perspective on objects and classes in object-oriented programming is elaborated: classes are described as co-algebras, which may occur as models (implementations) of co-algebraic speciications. These speciications are much like deferred (or virtual) classes with assertions in Eiiel. An object belonging to a class is an element of the state space of the class, as co-algebra. We ...

متن کامل

Equational Speci cations : Design , Implementation , and Reasoning

Sets of equations can be used to specify, implement, and reason about software. We discuss how to automate these tasks for constructor-based, convergent rewrite systems. Using incremental design strategies, we obtain completely deened, consistent, and suuciently complete speciications. Direct implementations of speciications as term rewriting systems serve as software prototypes of systems. We ...

متن کامل

Toward Formal Development of Programs from Algebraic Speciications: Implementations Revisited 1

The program development process is viewed as a sequence of implementation steps leading from a spe-ciication to a program. Based on an elementary notion of reenement, two notions of implementation are studied: constructor implementations which involve a construction \on top of" the implementing speciication, and abstractor implementations which additionally provide for abstraction from some det...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1992